﻿@using Orchard.UI.Resources
@{ Script.Require("jwplayer").AtHead(); }

<div id='mediaspace'>Loading the player...</div>
<script type="text/javascript">
    jwplayer.key = "dd6cWH//yspv9K4FlKpwnyp26GuzbH2nIU06FI9tTap3HdSneGW0AQ==";
    jwplayer('mediaspace').setup({
        'image': '@Url.Content(@Model.Image)',
        'file': '@Url.Content(@Model.MediaFile)',
        'autostart': '@Model.AutoStart',
        @if (Model.Repeat) { 
        <text>'repeat' : 'always',</text>
        }
        'width': '@Model.Width',
        'height': '@Model.Height'
    });
</script>
